Platform Explorer / Nuxeo Platform 6.0

Operation Workflow.CreateTask (Create task)

Description

Enable to create a task bound to the document.

Directive, comment and due date will be displayed in the task list of the user. In accept operation chain and reject operation chain fields, you can put the operation chain ID of your choice among the one you contributed. Those operations will be executed when the user validates the task, depending on whether he accepts or rejects the task. You have to specify a variable name (the key for ... parameter) to resolve target users and groups to which the task will be assigned. You can use Get Users and Groups to update a context variable with some users and groups. If you check create one task per actor, each of the actors will have a task to achieve, versus "the first who achieve the task makes it disappear for the others".

Operation id Workflow.CreateTask
Category Services
Label Create task
Requires
Since 5.3.2

Parameters

Name Description Type Required Default value
task name string yes  
due date date no  
directive string no  
comment string no  
accept operation chain string no  
reject operation chain string no  
variable name for actors prefixed ids string no  
additional list of actors prefixed ids stringlist no  
create one task per actor boolean no true 

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.task.CreateTask
Contributing Component org.nuxeo.ecm.automation.task.contrib

JSON Definition

{
  "id" : "Workflow.CreateTask",
  "label" : "Create task",
  "category" : "Services",
  "requires" : null,
  "description" : "Enable to create a task bound to the document. <p><b>Directive</b>, <b>comment</b> and <b>due date</b> will be displayed in the task list of the user. In <b>accept operation chain</b> and <b>reject operation chain</b> fields, you can put the operation chain ID of your choice among the one you contributed. Those operations will be executed when the user validates the task, depending on  whether he accepts or rejects the task. You have to specify a variable name (the <b>key for ... </b> parameter) to resolve target users and groups to which the task will be assigned. You can use Get Users and Groups to update a context variable with some users and groups. If you check <b>create one task per actor</b>, each of the actors will have a task to achieve, versus \"the first who achieve the task makes it disappear for the others\".</p>",
  "since" : "5.3.2",
  "url" : "Workflow.CreateTask",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "task name",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "due date",
    "description" : null,
    "type" : "date",
    "required" : false,
    "widget" : null,
    "order" : 1,
    "values" : [ ]
  }, {
    "name" : "directive",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 2,
    "values" : [ ]
  }, {
    "name" : "comment",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 3,
    "values" : [ ]
  }, {
    "name" : "accept operation chain",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 4,
    "values" : [ ]
  }, {
    "name" : "reject operation chain",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 5,
    "values" : [ ]
  }, {
    "name" : "variable name for actors prefixed ids",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 6,
    "values" : [ ]
  }, {
    "name" : "additional list of actors prefixed ids",
    "description" : null,
    "type" : "stringlist",
    "required" : false,
    "widget" : null,
    "order" : 7,
    "values" : [ ]
  }, {
    "name" : "create one task per actor",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 8,
    "values" : [ "true" ]
  } ]
}